﻿@using System.Data
@using ZoomLa.Common;
@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    Model.cols = 4;
    Model.url = "MyMarks_Data";
}
<div id="EGV">
@if (Model.itemCount < 1)
{
    <div style="background-color:#f9f9f9;border:1px solid #ddd;padding:10px 15px;">没有试卷信息</div>
}
else
{
    <div style="float:right; width:100%">
        <table class="table table-striped table-bordered table-hover">
            <tbody>
                <tr>
                    <th>试卷名称</th>
                    <th>考试时间</th>
                    <th>有效时间</th>
                    <th>参加考试</th>
                </tr>
                @foreach (DataRow dr in Model.dt.Rows)
                {
                    <tr>
                        <td align="center" valign="middle"> <a href="ExamDetail?ID=1" title="参加考试">@dr["p_name"]</a></td>
                        <td>@if (dr["p_UseTime"].ToString().Equals("0")){ <span>不限时间</span> }else { <span>@dr["p_UseTime"];分钟</span> }</td>
                        <td>@DataConverter.CDate(dr["p_BeginTime"]).ToString("yyyy-MM-dd") 至 @DataConverter.CDate(dr["p_endTime"]).ToString("yyyy-MM-dd") </td>
                        <td>
                            <a href="ExamDetail?ID=@dr["ID"]" target="_blank">参加考试</a>
                        </td>
                    </tr>
                }
                @Html.Partial("_page", Model)
            </tbody>
        </table>
    </div>
}
</div>
